package com.c8a.order.service;

import java.util.Map;

/**
 * @Author C8A
 * @Date 2021-12-01 17:16
 * @Email 1912327276@qq.com
 */

public interface WeixinService {
    /**
     * 根据订单号下单，生成支付链接
     */
    Map createNative(Long orderId);

    /**
     *调用微信接口实现支付状态查询
     * @param orderId
     * @param name
     * @return
     */
    Map<String, String> queryPayStatus(Long orderId, String name);

    /***
     * 退款
     * @param orderId
     * @return
     */
    Boolean refund(Long orderId);
}